@use "../../theme/themeify.scss" as tools;
.shell-receiver-contain {
    display: flex;
    overflow: hidden;
    background-color: var(--Colors-Use-Basic-Background);
}
.shell-receiver {
    height: 100%;
    display: flex;
    flex-direction: row;
    flex: 1;
    justify-content: center;
    overflow-y: auto;
    .shell-receiver-right-run {
        flex: 1;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        .header {
            display: flex;
            flex-direction: row;
            justify-content: space-between;
            padding: 14px 16px 10px 12px;
            align-items: center;
            border-bottom: 1px solid var(--Colors-Use-Neutral-Border);
            .title {
                display: flex;
                flex-direction: row;
                gap: 8px;
                align-items: center;
                overflow: hidden;
                .text {
                    font-size: 16px;
                    font-weight: 600;
                    line-height: 24px;
                    flex-shrink: 0;
                }
                .tag-port {
                    display: inline-block;
                    line-height: 14px;
                    white-space: nowrap;
                    text-overflow: ellipsis;
                    overflow: hidden;
                    word-break: break-all;
                }
            }
            .extra {
                display: flex;
                flex-direction: row;
                align-items: center;
                flex-shrink: 0;
                .extra-show {
                    display: flex;
                    align-items: center;
                    margin-right: 16px;
                    .extra-text {
                        text-align: right;
                        font-size: 12px;
                        font-weight: 400;
                        line-height: 16px;
                    }
                }
            }
        }
        .terminal-content {
            flex: 1;
            display: flex;
            overflow: hidden;
        }
    }
}
.shell-receiver-left-list {
    width: 302px;
    padding: 14px 12px 12px 16px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--Colors-Use-Neutral-Border);
    flex-shrink: 0;
    .header {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        margin-bottom: 16px;
        .title-select-box {
            display: flex;
            flex-direction: row;
            align-items: center;
            gap: 8px;
            .title {
                font-size: 12px;
                font-weight: 600;
                line-height: 16px;
            }
        }
        .extra {
            display: flex;
        }
    }
    .filter-box {
        display: flex;
        flex-direction: row;
        gap: 8px;
        margin-bottom: 12px;
        .select-box {
            flex: 1;
        }
        .input-box {
            flex: 2;
            .prefix {
                display: flex;
                align-items: center;
                color: var(--Colors-Use-Neutral-Text-3-Secondary);
                svg {
                    width: 16px;
                    height: 16px;
                }
            }
        }
    }
    .list-box {
        flex: 1;
        overflow: auto;
        .item-box {
            height: 40px;
            display: flex;
            align-items: center;
            padding: 10px 8px;
            border-radius: 4px;
            background: var(--Colors-Use-Neutral-Bg);
            margin-bottom: 4px;
            cursor: pointer;
            .text {
                font-size: 12px;
                font-weight: 600;
                line-height: 16px;
                word-break: break-all; //内部单词换行
                overflow: hidden;
                display: -webkit-box;
                -webkit-line-clamp: 2;
                -webkit-box-orient: vertical;
            }
            &:hover {
                background-color: var(--Colors-Use-Neutral-Bg-Hover);
            }
        }
        .item-box-active {
            background-color: var(--Colors-Use-Main-Primary);
            color: var(--Colors-Use-Main-On-Primary);
            &:hover {
                background-color: var(--Colors-Use-Main-Hover);
            }
        }
    }
    .no-more-text {
        font-size: 12px;
        color: var(--Colors-Use-Neutral-Disable);
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding-top: 8px;
    }
}
.fold-icon {
    color: var(--Colors-Use-Neutral-Text-3-Secondary);
    cursor: pointer;
    border-radius: 4px;
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    svg {
        width: 16px;
        height: 16px;
    }
    &:hover {
        background-color: var(--Colors-Use-Neutral-Bg);
        color: var(--Colors-Use-Main-Primary);
    }
}

.shellReceiver-heard {
    width: 506px;
    height: 314px;
    padding: 16px 24px 24px;
    margin: auto;
    margin-top: 96px;
    .heard-title-text {
        font-weight: 600;
        font-size: 16px;
        line-height: 24px;
        color: var(--Colors-Use-Neutral-Text-1-Title);
        margin-bottom: 8px;
        text-align: center;
    }
    .heard-subTitle-text {
        padding: 8px 24px;
        background-color: tools.fetch-color-transparen(var(--Colors-Use-Success-Primary), 10%);
        height: 48px;
        font-weight: 400;
        font-size: 12px;
        line-height: 16px;
        color: var(--Colors-Use-Success-Primary);
        border-radius: 4px;
    }
    .shellReceiver-form {
        padding: 24px 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .footer-btns {
        display: flex;
        justify-content: center;
        gap: 8px;
    }
}
.shell-receiver-middle-item {
    width: 300px;
    box-sizing: content-box;
    border-right: 1px solid var(--Colors-Use-Neutral-Border);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    .header {
        height: 24px;
        box-sizing: content-box;
        background-color: var(--Colors-Use-Basic-Background);
        padding: 14px 12px 10px 12px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid var(--Colors-Use-Neutral-Border);
        .title {
            font-size: 12px;
            font-weight: 600;
            line-height: 16px;
            white-space: nowrap;
            text-overflow: ellipsis;
            overflow: hidden;
            word-break: break-all;
        }
        .extra {
            display: flex;
            flex-direction: row;
            gap: 4px;
            .extra-icon {
                width: 16px;
                height: 16px;
                box-sizing: content-box;
                padding: 4px;
                border-radius: 4px;
                cursor: pointer;
                color: var(--Colors-Use-Neutral-Text-3-Secondary);
                svg {
                    width: 16px;
                    height: 16px;
                }
                &:hover {
                    background-color: var(--Colors-Use-Neutral-Bg);
                    color: var(--Colors-Use-Main-Primary);
                }
            }
        }
    }
    .content {
        flex: 1;
        overflow: auto;

        .content-text {
            background-color: var(--Colors-Use-Neutral-Bg);
            padding: 8px 12px;
            word-break: break-all;
            flex: 1;
            min-height: 100px;
            max-height: 300px;
        }
        .content-result {
            :global {
                .ant-result-icon {
                    svg {
                        width: 48px;
                        height: 48px;
                    }
                }
                .ant-result-title {
                    word-break: break-all;
                }
            }
        }
    }
    .footer {
        border-top: 1px solid var(--Colors-Use-Neutral-Border);
        box-shadow: 0px -8px 16px 0px var(--Colors-Use-Basic-Shadow);
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 12px;
        background-color: var(--Colors-Use-Basic-Background);
        .select-box {
            display: flex;
            flex-direction: column;
            gap: 8px;
            .select-item {
                display: flex;
                flex-direction: row;
                gap: 4px;
                align-items: center;
                justify-content: flex-end;
                .title {
                    font-size: 12px;
                    font-weight: 400;
                    line-height: 16px;
                }
            }
        }
        .line {
            height: 1px;
            width: 100%;
            background-color: var(--Colors-Use-Basic-Background);
        }
    }
}
.popover-shell-receiver {
    :global {
        .ant-popover-inner-content {
            padding: 0;
        }
    }
}
.setting-terminal {
    display: flex;
    flex-direction: column;
    gap: 8px;
    line-height: 16px;
    .setting-terminal-tip {
        font-size: 12px;
        color: var(--Colors-Use-Neutral-Disable);
    }
    .setting-terminal-upgrade {
        display: flex;
        align-items: center;
    }
    .setting-terminal-size {
        display: flex;
        align-items: center;
        :first-child {
            flex-shrink: 0;
        }
    }
}
